
package com.scs.application.modules.settlement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.model.CommonResult;
import com.scs.application.modules.settlement.dto.StockDTO;
import com.scs.application.modules.settlement.entity.Stock;
import com.scs.application.modules.settlement.request.StockQueryRequest;

import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.thirdparty.erp.request.StockRequest;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
* 库存管理 service 接口
*
*/
public interface StockService extends IBaseService<Stock> {

    List<Stock> list(StockQueryRequest request);

    IPage<Stock> page(StockQueryRequest request);

    IPage<Stock> pageForSupplier(StockQueryRequest request);

    void saveRealtime(List<StockDTO> stockDTOs);

    List<String> realtime(List<StockDTO> stockDTOS);

    CommonResult getStockERP(@RequestBody StockRequest request);
}
